<template>
  <div class="home">
    <div id="nav">
      <p v-for="(item,index) in linkArr" :key="index">
        <router-link :to="item.path">{{item.title}}</router-link>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      linkArr:[
        {path:"/",title:"Home"},
        {path:"/login",title:"github三方登录"},
      ]
    }
  }
};
</script>

<style lang="scss" scoped>
.home {
  font-size: 21px;
  router-link {
    display: block;
  }
}
</style>
